<div style="padding:10px 20px 20px 20px;margin:0px 0;">
	<div style="float:left;margin:10px 0px 10px 0;width:100%;">
	<form th:id="${formID}" action="#"  method="post" enctype="multipart/form-data">
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpName" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpName}+'  :'" label="设备名称"  name="equmtgrpName"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpIp" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpIp}+'  :'" label="设备IP"  name="equmtgrpIp"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="orgId" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.orgId}+'  :'" label="机构id"  name="orgId"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpIntcode" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpIntcode}+'  :'" label="设备注册码"  name="equmtgrpIntcode"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpMsfcode" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpMsfcode}+'  :'" label="设备注册码密文"  name="equmtgrpMsfcode"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpFlat" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpFlat}+'  :'" label="设备注册码加密盐"  name="equmtgrpFlat"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpCount" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpCount}+'  :'" label="设备注册码加密次数"  name="equmtgrpCount"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpStatus" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpStatus}+'  :'" label="设备状态"  name="equmtgrpStatus"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrppicPath" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrppicPath}+'  :'" label="设备照片"  name="equmtgrppicPath"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="takecareStdate" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.takecareStdate}+'  :'" label="安装时间"  name="takecareStdate"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="takecareCudate" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.takecareCudate}+'  :'" label="最新维护时间"  name="takecareCudate"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpAuth1" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpAuth1}+'  :'" label="权限1"  name="equmtgrpAuth1"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpAuth2" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpAuth2}+'  :'" label="权限2"  name="equmtgrpAuth2"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtgrpAuth3" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtgrpInfo.equmtgrpAuth3}+'  :'" label="权限3"  name="equmtgrpAuth3"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;clear:right;">
			<a th:href="'javascript:search(\''+${formID}+'\')'" class="easyui-linkbutton" iconCls="icon-search">查询</a>
		</div>
	</form>
	</div>
	<div style="float:left;margin-bottom:1px;width:100%;">
	<div style="float:left;">
		<a th:href="'javascript:batchdel(\''+${formID}+'\')'" class="easyui-linkbutton">批量删除</a>
		<input th:id="'show'+${formID}" type="hidden" th:value="@{equmtgrp/equmtgrpInfo/queryForEqumtgrpInfoDetail}" />
		<input th:id="'edit'+${formID}" type="hidden" th:value="@{equmtgrp/equmtgrpInfo/addEqumtgrpInfo}" /> 
		<input th:id="'del'+${formID}" type="hidden" th:value="@{equmtgrp/equmtgrpInfo/deleteByEqumtgrpInfoId}" />
		<input th:id="'mid'+${formID}" type="hidden" value="equmtgrpInfoId" />
		<input th:id="'batchdel'+${formID}" type="hidden" th:value="@{equmtgrp/equmtgrpInfo/deleteByEqumtgrpInfoIdBatch}" /> 
	</div>
	<div style="margin-left:10px;float:right;">
		<a th:id="'imp'+${formID}"  href="#" class="easyui-linkbutton" iconCls="" th:onclick="'javascript:importExcelMode(\''+${formID}+'\')'">导入</a>&nbsp;
		<a href="#" class="easyui-linkbutton" iconCls="" th:onclick="'javascript:downloadExcelMode(\''+@{/UploadFiles/Fj/AqglHseAqjc.xlsx}+'\')'">下载模板</a> &nbsp;
		<a href="#" class="easyui-linkbutton" iconCls="" onclick="exportExcelMode(\''+${formID}+'\')'">导出</a>
		
	</div>
	<form th:id="'impForm'+${formID}" action="#"  method="post" enctype="multipart/form-data"> 
		<div style="margin-left:10px;float:right;">
			<input class="easyui-filebox"
			data-options="label:'导入文件:',prompt:'请选择一个Excel文件',buttonText:'选择文件',
			accept:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel'"
			th:id="'file'+${formID}"  name="file" style="width:300px;">
		</div>
	</form>
	</div>

	<table  th:id="'datagrid'+${formID}" class="easyui-datagrid" title="设备管理表" style="width:100%;"
			data-options="url:'equmtgrp/equmtgrpInfo/queryForEqumtgrpInfoListDG',
			method:'get',rownumbers:true, nowrap: false,singleSelect:false,autoRowHeight: true,
			fitColumns: true,striped:true,idField:'menuInfoId',loadMsg: '正在加载...',pagination:true,pageSize:10">
		<thead data-options="frozen:true">
			<tr>
				<th data-options="field:'ck',checkbox:true" ></th>
				<th data-options="field:'equmtgrpName',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpName}">设备名称</span></th>
				<th data-options="field:'equmtgrpIp',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpIp}">设备IP</span></th>
				<th data-options="field:'orgId',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.orgId}">机构id</span></th>
				<th data-options="field:'equmtgrpIntcode',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpIntcode}">设备注册码</span></th>
				<th data-options="field:'equmtgrpMsfcode',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpMsfcode}">设备注册码密文</span></th>
				<th data-options="field:'equmtgrpFlat',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpFlat}">设备注册码加密盐</span></th>
				<th data-options="field:'equmtgrpCount',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpCount}">设备注册码加密次数</span></th>
				<th data-options="field:'equmtgrpStatus',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpStatus}">设备状态</span></th>
				<th data-options="field:'equmtgrppicPath',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrppicPath}">设备照片</span></th>
				<th data-options="field:'takecareStdate',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.takecareStdate}">安装时间</span></th>
				<th data-options="field:'takecareCudate',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.takecareCudate}">最新维护时间</span></th>
				<th data-options="field:'equmtgrpAuth1',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpAuth1}">权限1</span></th>
				<th data-options="field:'equmtgrpAuth2',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpAuth2}">权限2</span></th>
				<th data-options="field:'equmtgrpAuth3',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtgrpInfo.equmtgrpAuth3}">权限3</span></th>
			</tr>
		</thead>
	</table> 
</div> 
<script type="text/javascript">
	//操作
	function onOptEqumtgrpInfo(value,row,index){ 
		var s =  '<a class="Edit_Button" href="javascript:showDetail(\''+value+'\',\'展示《'+row.equmtgrpName+'》详情信息\',\'[[${formID}]] \')">详细</a>'+
			'&nbsp;'+
			'<a class="Edit_Button" href="javascript:edit(\''+value+'\',\'编辑《'+row.equmtgrpName+'》信息\',\'[[${formID}]] \')">编辑</a>'+
			'&nbsp;'+
			'<a class="Delete_Button" href="javascript:remove(\''+value+'\',\'[[${formID}]]\')" >删除</a>' ;
		return s;
	}
	
	//导入 
	function importExcelMode(formID){
		var file = $('#file'+formID).filebox('getValue');
		if(file==""){ 
			 $.messager.alert({ width: 350, title:'温馨提示', msg:'导入文件不能为空!', icon:'info'});
			return; 
		}
		 $('#imp'+formID).linkbutton('disable');
		$("#impForm"+formID).ajaxSubmit({
			type: "post",
			dataType: "json",
			url: '[[@{equmtgrp/equmtgrpInfo/importGenerateInfo }]]', 
			success:function(data){ 
				$('#imp'+formID).linkbutton('enable'); 
				console.log(data)
				if (data.code == 200) {
					dataReload(formID); 
					$.messager.alert({width: 280,title: '操作成功',msg: data.msg, icon:'info'});
				}else{
					$.messager.alert({ width: 280, title:'数据提交异常', msg:data.msg});
				}
			},error: function (data) {
				$('#imp'+formID).linkbutton('enable'); 
				$.messager.alert('消息提醒','上传失败，数据异常！');
			}
		});
	}
			
			
		
	

</script>



				<th class="text-center"> 设备名称</th>
				<th class="text-center"> 设备IP</th>
				<th class="text-center"> 机构id</th>
				<th class="text-center"> 设备注册码</th>
				<th class="text-center"> 设备注册码密文</th>
				<th class="text-center"> 设备注册码加密盐</th>
				<th class="text-center"> 设备注册码加密次数</th>
				<th class="text-center"> 设备状态</th>
				<th class="text-center"> 设备照片</th>
				<th class="text-center"> 安装时间</th>
				<th class="text-center"> 最新维护时间</th>
				<th class="text-center"> 权限1</th>
				<th class="text-center"> 权限2</th>
				<th class="text-center"> 权限3</th>
<tr th:each="equmtgrpInfo : ${equmtgrpInfoVOList}">
					    <td><input type="checkbox" name="interest" th:value="${equmtgrpInfo.equmtgrpInfoId}"/></td>
						<td><span th:text="${equmtgrpInfoStat.count}"></span></td>				<td><span th:text="${equmtgrpInfo.equmtgrpName}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpIp}"></span></td>
				<td><span th:text="${equmtgrpInfo.orgId}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpIntcode}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpMsfcode}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpFlat}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpCount}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpStatus}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrppicPath}"></span></td>
				<td><span th:text="${equmtgrpInfo.takecareStdate}"></span></td>
				<td><span th:text="${equmtgrpInfo.takecareCudate}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpAuth1}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpAuth2}"></span></td>
				<td><span th:text="${equmtgrpInfo.equmtgrpAuth3}"></span></td>
